#ifndef DISTINCTIVE_NAME_RULE_H
#define DISTINCTIVE_NAME_RULE_H

#include "ivalidatorrule.h"

#include <QtCore/QObject>

namespace core
{
class IGraphicEditorItem;
}

namespace swp
{
class GraphicData;

class DistinctiveNamesRule : public IValidatorRule
{

public:
    DistinctiveNamesRule();
    ~DistinctiveNamesRule();

    // IValidatorRule
    bool isProjectWide() const;
    bool validate(
        const QSharedPointer<core::IContainerDocument>& document,
        QAction*& reportClickAction, QString& reportText) const;
    bool validate(const QSharedPointer<core::IDocument>& document,
        QAction*& reportClickAction, QString& reportText) const;
};

} // namespace swp

#endif
